//
//  exchangeDetailCell.m
//  SSSAllRollAgency
//
//  Created by Darker on 2017/3/16.
//  Copyright © 2017年 Darker. All rights reserved.
//

#import "exchangeDetailCell.h"

@implementation exchangeDetailCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.contentView.backgroundColor = [UIColor whiteColor];
        //初始化子视图
        [self initSubsView];
    }
    return self;
}
- (void)initSubsView{
    
    _nameLabel = [[UILabel alloc]init];
    _nameLabel.textColor = [UIColor colorWithHex:@"6D6D6D"];
    _nameLabel.font = [SSSFont systemFontOfSize:15];
    _nameLabel.textAlignment = NSTextAlignmentLeft;
    [self.contentView addSubview:_nameLabel];
    _nameLabel.sd_layout
    .leftSpaceToView(self.contentView,WidthIos6CompeteWithCurrent(15))
    .centerYEqualToView(self.contentView)
    .widthIs(WidthIos6CompeteWithCurrent(100))
    .heightIs(HeigthIos6CompeteWithCurrent(40));

    _descLabel = [[UILabel alloc]init];
    _descLabel.textColor = [UIColor colorWithHex:@"BBBBBB" alpha:1];
    _descLabel.font = [SSSFont systemFontOfSize:15];
    _descLabel.textAlignment = NSTextAlignmentRight;
    [self.contentView addSubview:_descLabel];
    _descLabel.sd_layout
    .rightSpaceToView(self.contentView,WidthIos6CompeteWithCurrent(15))
    .centerYEqualToView(self.contentView)
    .leftSpaceToView(_nameLabel,0)
    .heightIs(HeigthIos6CompeteWithCurrent(40));
    
    
    self.lineView = [[UIView alloc]init];
    self.lineView.backgroundColor = [UIColor colorWithHex:@"F0F0F0"];
    [self.contentView addSubview:self.lineView];
    self.lineView.sd_layout
    .leftEqualToView(self.contentView)
    .rightEqualToView(self.contentView)
    .bottomEqualToView(self.contentView)
    .heightIs(HeigthIos6CompeteWithCurrent(1));
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    
}

@end
